<script setup>
import {ref,defineProps} from "vue"
import { router } from "../router";

const props = defineProps({
    name:{type:String},
    url: {type:String},
})

const goToPage = () => {
    router.push(`/${props.url}`)
}
</script>

<template>
    <div class="dialogBox" @click="goToPage()">
        <span>{{ props.name }}</span>
    </div>
</template>

<style scoped>
.dialogBox{
    width: 100px;
    height: 50px;
    background: rgba(200, 200, 200, .5);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
</style>